-
-
Notifications
You must be signed in to change notification settings - Fork 681
Added paths option to resolve stdlib imports in IDE's #637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| // @ts-ignore: decorator | ||
| @inline const BUFFERED_MASK: u32 = 1 << (sizeof<u32>() * 8 - 1); | ||
| @inline const BUFFERED_MASK: u32 = 1 << ((sizeof<u32>() * 8) - 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this unnecessary. Multiply already have bigger precedence than subtraction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| declare function __visit_globals(cookie: u32): void; | ||
| declare function __visit_members(ref: usize, cookie: u32): void; | ||
| declare function __allocArray(length: i32, alignLog2: usize, id: u32, data?: usize): usize; | ||
| declare const ASC_RTRACE: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this declaration better include here I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that this is actually not present at all without --use ASC_RTRACE=1, and meant to be used as isDefined(ASC_RTRACE).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which is my I thought it best to put here since this is the folder where it is referenced and so IDE's will use it. And it seemed like an internal definition so I didn't want to put it in the higher level file.
|
Thanks! |

Currently IDE's can't resolve stdlib imports that aren't relative. This uses the ts path compiler option to try to resolve non-relative paths with the stdlib.
This also fixes two typing errors that IDE found.